/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.agenda.model;

import com.agenda.model.entity.AmTbPaci;
import javax.ejb.EJB;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author Ronildo
 */
@WebService(serviceName = "PacienteWS")
public class PacienteWS {
    
    @EJB
    private PacientePersistence pacientePesistence;
    
    @WebMethod(operationName = "insert")
    public void insert(@WebParam(name = "paciente") AmTbPaci paciente) {
        pacientePesistence.insert(paciente);
    }
    
    /*@WebMethod(operationName = "delete")
    public void delete(@WebParam(name = "paciente") AmTbPaci paciente) {
        pacientePesistence.delete(paciente);
    }
    @WebMethod(operationName = "update")
    public void update(@WebParam(name = "paciente") AmTbPaci paciente) {
        pacientePesistence.update(paciente);
    }
    
    @WebMethod(operationName = "findById")
    public void findById(@WebParam(name = "id") Long id) {
        pacientePesistence.findById(id);
    }
    
    @WebMethod(operationName = "list")
    public List<AmTbPaci> list(@WebParam(name = "paciente") AmTbPaci paciente) {
        return pacientePesistence.list(paciente);
    }*/
}
